//
//  YouhuiHeader.m
//  PlayerWorld
//
//  Created by 汪的一声就哭了！ on 16/8/16.
//  Copyright © 2016年 刘成. All rights reserved.
//

#import "YouhuiHeader.h"

@implementation YouhuiHeader

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        self.mainImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.mainImageView];
        
        self.label = [[UILabel alloc] init];
        [self.contentView addSubview:self.label];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.mainImageView.frame = CGRectMake(10, 5, 20, 20);
    self.label.frame = CGRectMake(40, 0, self.contentView.bounds.size.width - 40, self.contentView.bounds.size.height);
}
@end
